inherited FPesquisaPreNotaFiscal: TFPesquisaPreNotaFiscal
  Left = 210
  Top = 108
  Caption = 'Pr'#233' Nota Fiscal'
  ClientHeight = 343
  ClientWidth = 411
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    Width = 411
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      Caption = '&Imprimir'
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      Caption = '&Visualizar'
      OnClick = BtnSelecionarClick
    end
  end
  inherited Panel1: TPanel
    Width = 411
    Height = 302
    object Label1: TLabel [0]
      Left = 6
      Top = 61
      Width = 104
      Height = 13
      Caption = 'Formul'#225'rio Nota Fiscal'
    end
    object Label2: TLabel [1]
      Left = 6
      Top = 100
      Width = 149
      Height = 13
      Caption = 'N'#176' Nota Fiscal / S'#233'rie (Entrada)'
    end
    object Label3: TLabel [2]
      Left = 174
      Top = 100
      Width = 141
      Height = 13
      Caption = 'N'#176' Nota Fiscal / S'#233'rie (Sa'#237'da)'
      FocusControl = DBENumeroNFSaida
    end
    object Label4: TLabel [3]
      Left = 6
      Top = 140
      Width = 99
      Height = 13
      Caption = 'N'#250'mero S'#234'lo /  S'#233'rie'
      FocusControl = DBENumeroSelo
    end
    object Label5: TLabel [4]
      Left = 6
      Top = 20
      Width = 89
      Height = 13
      Caption = 'C'#243'digo Nota Fiscal'
    end
    object LNaturezaNota: TLabel [5]
      Left = 1
      Top = 1
      Width = 409
      Height = 16
      Align = alTop
      AutoSize = False
      Caption = ' Natureza CFOP Nota Fiscal : Entrada'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -13
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object Label6: TLabel [6]
      Left = 100
      Top = 21
      Width = 51
      Height = 13
      Caption = 'Impressora'
    end
    object Label7: TLabel [7]
      Left = 6
      Top = 181
      Width = 65
      Height = 13
      Caption = 'Data Emiss'#227'o'
    end
    object Label8: TLabel [8]
      Left = 106
      Top = 181
      Width = 103
      Height = 13
      Caption = 'Data Entrada / Sa'#237'da'
    end
    object Label9: TLabel [9]
      Left = 214
      Top = 181
      Width = 55
      Height = 13
      Caption = 'Hora Sa'#237'da'
    end
    inherited DBGrid1: TDBGrid
      Top = 222
      Width = 409
      Height = 59
      TabOrder = 13
      Columns = <
        item
          Expanded = False
          FieldName = 'NF_NUMERONF'
          Title.Caption = 'N'#250'mero Nota Fiscal'
          Width = 103
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NF_SERIENF'
          Title.Caption = 'S'#233'rie Nota Fiscal'
          Width = 89
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NF_NUMEROSELO'
          Title.Caption = 'N'#250'mero S'#234'lo'
          Width = 69
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NF_SERIESELO'
          Title.Caption = 'S'#233'rie S'#234'lo'
          Width = 55
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'NF_DATAEMISSAO'
          Title.Caption = 'Data Emiss'#227'o'
          Width = 77
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 281
      Width = 409
      TabOrder = 14
    end
    object DBLCBDescricaoFormulario: TDBLookupComboBox
      Left = 6
      Top = 76
      Width = 399
      Height = 21
      KeyField = 'CODIGO'
      ListField = 'DESCRICAO'
      ListSource = DSConfiguracaoNotaFiscal
      TabOrder = 3
      OnKeyDown = DBLCBDescricaoFormularioKeyDown
    end
    object DBENumeroNFEntrada: TDBEdit
      Left = 6
      Top = 116
      Width = 73
      Height = 21
      Color = clAqua
      DataField = 'NUMERONOTAFISCALENTRADA'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 4
    end
    object DBESerieNFEntrada: TDBEdit
      Left = 85
      Top = 116
      Width = 41
      Height = 21
      Color = clAqua
      DataField = 'SERIENOTAFISCALENTRADA'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 5
    end
    object DBENumeroNFSaida: TDBEdit
      Left = 174
      Top = 116
      Width = 73
      Height = 21
      Color = clAqua
      DataField = 'NUMERONOTAFISCALSAIDA'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 6
    end
    object DBESerieNFSaida: TDBEdit
      Left = 253
      Top = 116
      Width = 41
      Height = 21
      Color = clAqua
      DataField = 'SERIENOTAFISCALSAIDA'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 7
    end
    object DBENumeroSelo: TDBEdit
      Left = 6
      Top = 156
      Width = 134
      Height = 21
      Color = clAqua
      DataField = 'NUMEROSELO'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 8
    end
    object DBESerieSelo: TDBEdit
      Left = 146
      Top = 156
      Width = 30
      Height = 21
      Color = clAqua
      DataField = 'SERIESELO'
      DataSource = DSConfiguracaoNotaFiscal
      ReadOnly = True
      TabOrder = 9
    end
    object ECodigoNF: TEdit
      Left = 6
      Top = 36
      Width = 91
      Height = 21
      TabOrder = 0
      OnKeyPress = ECodigoNFKeyPress
    end
    object CBImpressora: TComboBox
      Left = 100
      Top = 36
      Width = 204
      Height = 21
      ItemHeight = 13
      TabOrder = 1
      OnKeyDown = CBImpressoraKeyDown
    end
    object BtnMapearImpressora: TBitBtn
      Left = 307
      Top = 36
      Width = 94
      Height = 20
      Caption = 'Mapear Impressora'
      TabOrder = 2
      OnClick = BtnMapearImpressoraClick
    end
    object DEDataEmissao: TDateEdit
      Left = 6
      Top = 195
      Width = 90
      Height = 21
      NumGlyphs = 2
      TabOrder = 10
    end
    object DEDataEntradaSaida: TDateEdit
      Left = 106
      Top = 195
      Width = 90
      Height = 21
      NumGlyphs = 2
      TabOrder = 11
    end
    object MEHoraSaida: TMaskEdit
      Left = 214
      Top = 195
      Width = 57
      Height = 21
      EditMask = '!90:00;1;_'
      MaxLength = 5
      TabOrder = 12
      Text = '  :  '
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      
        'Select NF_CODIGO,NF_SITUACAO,NF_NUMERONF,CFOP_CODIGOFISCAL,CFOP_' +
        'DESCRICAO,CFOP_NATUREZAOPERACAO,CLI_RAZAO,CLI_TIPOCLIENTE,CLI_CP' +
        'FCNPJ,CLI_INSCESTADUAL,CLI_FONE,CLI_FAX,CLI_IDENTENDNF,CLI_ENDER' +
        'ECOCORRESP as Endereco1,CLI_BAIRROCORRESP as Bairro1,'
      
        'CLI_CEPCORRESP as Cep1,CLI_CIDADECORRESP as Cidade1,CLI_ESTADOCO' +
        'RRESP as UF1,CLI_ENDERECOPEDIDO as Endereco2,CLI_BAIRROPEDIDO as' +
        '  Bairro2,CLI_CEPPEDIDO as Cep2,CLI_CIDADEPEDIDO as Cidade2,CLI_' +
        'ESTADOPEDIDO as UF2'
      
        ',NF_VALORDESCONTOSERVICO,NF_VALORFINALSERVICO,NF_VALORDESCONTOPR' +
        'ODUTO,NF_VALORFINALPRODUTO,NF_PERCISS,NF_PERCIRRF,NF_PERCINSS,NF' +
        '_VALORFRETE,NF_VALORSEGURO,NF_VALOROUTROS,NF_VALORIPI,NF_VALORFI' +
        'NALNOTA,NF_BASEICMSNORM,'
      
        'NF_VALORICMSNORM,NF_BASEICMSSUB,NF_VALORICMSSUB,TRANS_NOME,TRANS' +
        '_CPFCNPJ,TRANS_ENDERECO,TRANS_CIDADE,TRANS_UF,TRANS_INSCESTDUAL,' +
        'NF_FRETE,NF_PLACA,NF_PLACAUF,NF_QUANTIDADEVOLUME,NF_ESPECIEVOLUM' +
        'E,NF_MARCA,NF_NUMERO,NF_PESOBRUTO,'
      
        'NF_PESOLIQUIDO,NF_DADOSADICONAIS,NF_TEXTOLEGAL,ITENSNF_PRODUTO,P' +
        'ROD_DESCRICAOSAI,ITENSNF_COMPLEMENTOPRODUTO,PROD_UNIDSAIDA,PROD_' +
        'NATUREZA,ITENSNF_SERVICO,ITENSNF_CLASSFISCAL2,ITENSNF_CLASSFISCA' +
        'L9,ITENSNF_SITUACAOTRIBUTARIA,'
      
        'ITENSNF_QUANTIDADE,ITENSNF_VALORUNITARIO,ITENSNF_VALORTOTAL,ITEN' +
        'SNF_PERCICMS,ITENSNF_PERCREDBASEICMS,ITENSNF_PERCIPI,ITENSNF_PER' +
        'CREDBASEIPI,ITENSNF_VALORIPI,ITENSNF_PESOBRUTO,ITENSNF_PESOLIQUI' +
        'DO'
      
        'From NotaFiscalVenda inner join ItensNotaFiscalVenda on NF_Codig' +
        'o = ITENSNF_NOTAFISCAL inner join Produto on ITENSNF_Produto = P' +
        'rod_Codigo inner join CFOP on NF_CFOPNF = CFOP_Codigo'
      
        'Left join Transportadora on NF_TRANSPORTADORA = Trans_Codigo inn' +
        'er join TipoVenda on NF_TipoVenda = TipVend_Codigo inner join CL' +
        'IENTE on NF_Cliente = Cli_Codigo'
      '')
    Left = 280
    Top = 192
  end
  inherited DSPesquisa: TDataSource
    Left = 312
    Top = 193
  end
  object DSConfiguracaoNotaFiscal: TDataSource
    DataSet = QConfiguracaoNotaFiscal
    Left = 168
    Top = 112
  end
  object QConfiguracaoNotaFiscal: TQuery
    DatabaseName = 'base'
    RequestLive = True
    SQL.Strings = (
      'Select * from ConfiguracaoNotaFiscal'
      'Order By Codigo')
    Left = 136
    Top = 112
  end
  object QNotaFiscal: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'Select *  From  NotaFiscalVenda')
    Left = 344
    Top = 193
  end
  object PSetupDialog: TPrinterSetupDialog
    Left = 352
    Top = 40
  end
end
